package com.dodoke.day03;

public class Work1 {
    public static void main(String[] args) {
        int [][]students =new int[5][25];
        int orange =100;
        int count = 0;
        for (int i = 0; i < students.length ; i++) {
            for (int j = 0; j <students[i].length ; j++) {
                if (count >= orange){
                    System.out.println("橙子发完没有了");
                    return;
                }
                if((j+1)%5 !=0){
                    count++;
                    System.out.println(String.format("第%d个班级的第%d个学生领取%d个橙子", i+1,j+1,count));
                }
            }
        }
    }
}
